<div class="{if $type == 1}boxDlg600{else}boxDlg400{/if}" >
	<div class="headerTitle">
    	<h3>Đánh giá uy tín Offline</h3>
        <span><a href="javascript:closeUI();"><img src="{$smarty.const.HOST_STATICS}img/btn/close.png" width="10" height="10" alt="Close dialog" border="0"/></a></span>
    </div>
    <div class="{if $type == 1}dlg600Item{else}dlg400Item{/if}"> 
    	{if $type == 1}
            <div id="dlgOfflineRate">
            	{if $arrAccept}
            		<form id="frmInvite" name="frmInvite" method="post" action="{$smarty.const.HOST_VFRIEND}offline/invite?token={$intOfflineId|secret:$smarty.const.SE_OFFLINE_INVITE}&amp;offlineid={$intOfflineId}" enctype="multipart/form-data">                		<input type="hidden" name="pcheck" id="pcheck" value="0" />
                        <div id="scrollPane" class="scroll-pane">
                            <div class="offlineRateItem"> 
                                <div class="ownerInfo">
                                    {image userid=$row.userid viewid=$AppUI->id type=1 small=2 class="border50NB lFloat"}
                                    <ul>
                                        <li><h3><a href="{vfriend_username userid=$row.userid viewid=$AppUI->id}">{$row.userid|ouser}</a> Chủ OFF</h3></li>
                                        <li><span class="gray">{$row.expired|date_format:"%Hh%M - %d/%m/%Y"}</span> - {$row.title}</li>
                                    </ul>
                                </div> 
                                <div class="joinList">  
                                    <h3><strong>Thành viên tham gia</strong></h3>	
                                    <div class="loading"> 
                                        <p align="center"><img src="{$smarty.const.HOST_STATICS}img/bg/loading-bar.gif" alt="loading" width="88" height="7" border="0" /></p>
                                        <p align="center">Đang xử lý...Vui lòng chờ trong giây lát.</p>
                                    </div>
                                    <div class="tips">&nbsp;</div>
                                    <ul id="joinList">
	                                   {include file="ajax/box-offline-rate-item.tpl"}
                                    </ul>
                                </div>
                            </div>
                        </div>
                 	</form>
                {else}
                    <div class="notContent">Hiện tại, danh sách bạn bè của bạn không còn thành viên nào để tiến hành mời tham gia OFF.</div>
                {/if}
            </div>
        {else}
        	<div class="offlineRate">
            	{image userid=$row.userid viewid=$AppUI->id type=1 small=2 class="border50NB lFloat"}
                <ul>
                	<li><h3><a href="{vfriend_username userid=$row.userid viewid=$AppUI->id}">{$row.userid|ouser}</a> Chủ OFF</h3></li>
                    <li><span class="gray">{$row.expired|date_format:"%Hh%M - %d/%m/%Y"}</span> - {$row.title}</li>
                </ul>
                <div class="sAction">
                	<a href="{$smarty.const.HOST_VFRIEND}offline/rate?aj=0&amp;offlineid={$row.offlineid}&amp;uid={$row.userid|base64E}&amp;po=1&amp;token={$row.offlineid|secret:$smarty.const.SE_OFFLINE_RATE_RIGHT}"><img src="{$smarty.const.HOST_STATICS}img/btn/offline-rating-plus.gif" alt="" width="71" height="26" border="0" /></a>
                	<a href="{$smarty.const.HOST_VFRIEND}offline/rate?aj=0&amp;offlineid={$row.offlineid}&amp;uid={$row.userid|base64E}&amp;po=-1&amp;token={$row.offlineid|secret:$smarty.const.SE_OFFLINE_RATE_WRONG}" class="lMargin10"><img src="{$smarty.const.HOST_STATICS}img/btn/offline-rating-subtract.gif" alt="" width="71" height="26" border="0" /></a>
                </div>
            </div>
        {/if}
    </div>
</div>